/*
 * @Author: silence silence9685@163.com
 * @Date: 2023-07-18 09:35:17
 * @LastEditors: silence silence9685@163.com
 * @LastEditTime: 2023-07-18 15:39:08
 * @FilePath: \ems_neutral_app\lib\entities\CompanyEntity.dart
 * @Description: 公司相关信息
 */
import 'package:sil_utils_package/log/SilEntityLog.dart';

class CompanyEntity {
  String? id;
  String? version;
  String? companyName;
  String? phone;
  String? companyProfile;
  String? companyAddress;
  String? contactPhone;
  String? email;
  String? website;
  String? bkImg;
  String? skypeContext;
  String? skypeNo;
  String? isValid;
  String? createTime;
  CompanyEntity({
    this.id,
    this.version,
    this.companyName,
    this.phone,
    this.companyProfile,
    this.companyAddress,
    this.contactPhone,
    this.email,
    this.website,
    this.bkImg,
    this.skypeContext,
    this.skypeNo,
    this.isValid,
    this.createTime,
  });
  CompanyEntity.fromJson(Map<String, dynamic> json) {
    id = SilEntityLog.handleString(json, 'id');
    version = SilEntityLog.handleString(json, 'version');
    companyName = SilEntityLog.handleString(json, 'companyName');
    phone = SilEntityLog.handleString(json, 'phone');
    companyProfile = SilEntityLog.handleString(json, 'companyProfile');
    companyAddress = SilEntityLog.handleString(json, 'companyAddress');
    contactPhone = SilEntityLog.handleString(json, 'contactPhone');
    email = SilEntityLog.handleString(json, 'email');
    website = SilEntityLog.handleString(json, 'website');
    bkImg = SilEntityLog.handleString(json, 'bkImg');
    skypeContext = SilEntityLog.handleString(json, 'skypeContext');
    skypeNo = SilEntityLog.handleString(json, 'skypeNo');
    isValid = SilEntityLog.handleString(json, 'isValid');
    createTime = SilEntityLog.handleString(json, 'createTime');
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['version'] = this.version;
    data['companyName'] = this.companyName;
    data['phone'] = this.phone;
    data['companyProfile'] = this.companyProfile;
    data['companyAddress'] = this.companyAddress;
    data['contactPhone'] = this.contactPhone;
    data['email'] = this.email;
    data['website'] = this.website;
    data['bkImg'] = this.bkImg;
    data['skypeContext'] = this.skypeContext;
    data['skypeNo'] = this.skypeNo;
    data['isValid'] = this.isValid;
    data['createTime'] = this.createTime;
    return data;
  }
}
